<?xml version="1.0" encoding="UTF-8"?>
<html>
    <head>
        <link type="text/css" rel="stylesheet" href="./css/template.css" />
        <link type="text/css" rel="stylesheet" href="./css/SyntaxHighlighter.css" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Preparation of a jumpstart server - Articles - 1/1 - Java &amp; Solaris by the SUPINFO Lab of Sun Technologies</title>
        <script language="javascript" src="./js/shInit.js" />
        <script language="javascript" src="./js/shCore.js" />
        <script language="javascript" src="./js/shBrushCpp.js" />
        <script language="javascript" src="./js/shBrushCSharp.js" />
        <script language="javascript" src="./js/shBrushCss.js" />
        <script language="javascript" src="./js/shBrushDelphi.js" />
        <script language="javascript" src="./js/shBrushJava.js" />
        <script language="javascript" src="./js/shBrushJScript.js" />
        <script language="javascript" src="./js/shBrushPhp.js" />
        <script language="javascript" src="./js/shBrushPython.js" />
        <script language="javascript" src="./js/shBrushRuby.js" />
        <script language="javascript" src="./js/shBrushSql.js" />
        <script language="javascript" src="./js/shBrushVb.js" />
        <script language="javascript" src="./js/shBrushXml.js" />
        <keywords>installation,reseau,distant,Solaris,Applicatif,preparation,of,jumpstart,server,articles,1,1,sun,java,solaris,articles,essentiels,tips,astuces,example,tutorial,laboratory</keywords>
        <author>Serhiy Kvitka</author>
    </head>
    <body>
        <div class="chapter">
            <h2>Introduction</h2>
			<p>For this example, we will take the installation of Solaris 9 on the machine name "client", and as server, we will have a machine name "server" running Solaris 9.</p>
            <p>Note : Installation of Solaris 8 or Solaris 9 are the same.</p>
            <p>The most important of Jumpstart technology is the server installation with access via NFS to the OS files, and to deamons who allow the initialisation of the installation process on the target system (giving the hostname and IP-adress, configure specific installation parameters).</p>
        </div>
        <div class="chapter">
            <h2>Installation</h2>
			<p>On the server, we copy the installation image of the OS. For this step, no matter whose partition is used (for example : /export/home0/ins), the most important is to use a partition with enough available space (for a Solaris 9, you must have about 2.2Go available).</p>
            <p>You put the first disk of Solaris 9 OE software in your cd drive.</p>
			<p>Browse the CD to reach the directory .../s0/Solaris_9/Tools, now you are in the following directory :</p>
            <div class="subChapter">
                <span class="cmd_line_lvl">#&gt;</span>
                <span class="cmd_line">pwd</span>
                <br />
                <span class="cmd_line">/cdrom/sol_9.../s0/Solaris_9/Tools</span>
            </div>
			<p>Launch the script :</p>
            <div class="subChapter">
                <span class="cmd_line_lvl">#&gt;</span>
                <span class="cmd_line">./setup_install_server /export/home0/ins</span>
                <br />
                <span class="cmd_line">Verifying target directory...</span>
                <br />
                <span class="cmd_line">Calculating the required disk space for the Solaris 9 product</span>
                <br />
                <span class="cmd_line">Copying the CD image to disk...</span>
                <br />
                <span class="cmd_line">Install server setup complete</span>
            </div>
			<p>Now, you change the CD1 by the CD2. For this :</p>
            <div class="subChapter">
                <span class="cmd_line_lvl">#&gt;</span>
                <span class="cmd_line">cd /</span>
                <br />
                <span class="cmd_line_lvl">#&gt;</span>
                <span class="cmd_line">eject cdrom</span>
            </div>
			<p>While the CD2 is in the drive, you return in the folder .../s0/Solaris_9/Tools, and launch the script :</p>
            <div class="subChapter">
                <span class="cmd_line_lvl">#&gt;</span>
                <span class="cmd_line">./ add_to_install_server /export/home0/ins</span>
                <br />
                <span class="cmd_line">...</span>
                <br />
                <span class="cmd_line">...</span>
                <br />
                <span class="cmd_line">Procedure completed successfully.</span>
            </div>
			<p>Now your installation image is ready.</p>
			<p>You need to enlarge the partition where you have created your image. In the file /etc/dfs/dfstab, you add the line :</p>
            <div class="subChapter">
                <span class="cmd_line_lvl">#&gt;</span>
                <span class="cmd_line">share -F nfs -o ro,anon=0 /export/home0/ins</span>
            </div>
            <p>Then :</p>
            <div class="subChapter">
                <span class="cmd_line_lvl">#&gt;</span>
                <span class="cmd_line">shareall</span>
            </div>
			<p>Important : to succeed the installation, your "client" and "server" must be in the same subnet.</p>
            <p>To know the MAC adress of your "client", you need to go in the OpenBoot. For a local access, you could go to the OpenBoot with the hotkeys Stop+A. For an access through a COM port, you need to send a BREAK signal (ALT+B in a TerraTerm).</p>
            <p>When you get the command line of OpenBoot, you ask the information with the command banner :</p>
            <div class="subChapter">
                <span class="cmd_line_lvl">#&gt;</span>
                <span class="cmd_line">ok banner</span>
            </div>
			<p>You will find the MAC adress of the network inteferace of the computer. Now that we have the name and the MAC adress of the "client" we have to add, we will add it to the /etc/ethers file of the server with the following command line :</p>
            <div class="subChapter">
                <span class="cmd_line_lvl">#&gt;</span>
                <span class="cmd_line">8:0:20:82:d8:8f client</span>
            </div>
			<p>In the /etc/hosts file, it is necesary to add the new IP adress of the client :</p>
            <div class="subChapter">
                <span class="cmd_line_lvl">#&gt;</span>
                <span class="cmd_line">192.168.50.2 client</span>
            </div>
			<p>Now we go on the partition of the image /export/home0/ins/Solaris/Tools and we launch the following script add_install_client with the NFS path to the image, the client name and the type of system in arguments :</p>
            <div class="subChapter">
                <span class="cmd_line_lvl">#&gt;</span>
                <span class="cmd_line">pwd</span>
                <br />
                <span class="cmd_line">/export/home0/ins/Solaris/Tools</span>
                <br />
                <span class="cmd_line_lvl">#&gt;</span>
                <span class="cmd_line">./add_install_client -c server:/export/home0/ins client sun4u</span>
                <br />
                <span class="cmd_line">...</span>
                <br />
                <span class="cmd_line">...</span>
                <br />
                <span class="cmd_line">updating /etc/bootparams</span>
                <br />
                <span class="cmd_line">copying inetboot to /tftpboot</span>
                <br />
                <span class="cmd_line">Procedure completed successfully.</span>
            </div>
			<p>Now the procedure to add a client is over. In the Openboot of the client, we write :</p>
            <div class="subChapter">
                <span class="cmd_line_lvl">#&gt;</span>
                <span class="cmd_line">ok boot net - install</span>
            </div>
			<p>
			<p>A little time after, the installation will start.</p>
            <p>Some related links :</p>
            <p>
                <a href="http://www.sun.com/" target="_about">http://www.sun.com/</a>
                <br />
                <a href="http://wwws.sun.com/software/solaris/" target="_about">http://wwws.sun.com/software/solaris/</a>
                <br />
                <a href="http://www.squirrel.com/squirrel/sun-stuff.html" target="_about">http://www.squirrel.com/squirrel/sun-stuff.html</a>
            </p>
        </div>
    </body>
</html>

